<?php
/**
 * Created by wangyong.
 * User: Administrator
 * Date: 2019/2/22
 * Time: 15:23
 */
namespace app\index\model;

/**分站表       f
 * Class Substation
 * @package app\index\model
 */
class Substation extends Base
{
    /**  分站表根据域名获取对应id
     * @param $substation_name
     * @return mixed
     */
       public function getSubId($substation_name){
           return $this->where('substation_domain',$substation_name)
               ->value('substation_id');
       }
}